import Vue from 'vue'

export default function({$axios,redirect,store}) {
	const compress = function(url,width,height,kg) {
		// $axios.get('/Web/Thumbnail/Img?sFile='+url +'&dHeight='+height +'&dWidth='+width +'&flag='+kg)
		let img = Vue.prototype.baseURL+'/Web/Thumbnail/Img?sFile='+url +'&dHeight='+height +'&dWidth='+width +'&flag='+kg
		// console.log(img)
		return img
	}
	
	Vue.prototype.compress = compress
}